home *** CD-ROM | disk | FTP | other *** search
/ Champak 132 (Alt) / Vol 132.iso / games / rong.swf / scripts / frame_2 / DoAction.as
Encoding:
Text File  |  2011-06-09  |  770 b   |  21 lines

  1. _root._gameOptions = new Object();
  2. _root._gameOptions._scoreToWin = -1;
  3. _root._gameOptions._paddleHitAcceleration = 1.25;
  4. _root._gameOptions._initialPuckSpeed = 6;
  5. _root._gameOptions._nPlayers = Math.floor(Math.random() * 2 + 2);
  6. _root._gameOptions._playerOptions = new Array();
  7. var i;
  8. i = 1;
  9. while(i <= _root._gameOptions._nPlayers)
  10. {
  11.    _root._gameOptions._playerOptions[i] = new Object();
  12.    _root._gameOptions._playerOptions[i]._isAIControlled = true;
  13.    _root._gameOptions._playerOptions[i]._isExpert = Math.random() < 0.5;
  14.    i++;
  15. }
  16. this.attachMovie("CRoundPongGame","CRoundPongGame1",10,{_x:150,_y:150,_isInDemoMode:true});
  17. this.attachMovie("CPlayButton","CPlayButton1",20,{_x:150,_y:150});
  18. AttachGameCursor(false);
  19. Mouse.show();
  20. this.stop();
  21.